<!DOCTYPE html>
<html>
<head>
    <meta charset="utf8" >
    <title>{{ config "String" "AppName" "CMDB" }}</title>
</head>
{{ assets_css "/static/css/bootstrap.min.css" }}
<body>
<div class="container-fluid" style="margin-top: 200px">
    <div class="col-4 offset-4">
        <div class="rounded shadow-lg p-5">
    <form action="{{ urlfor `AuthController.Login` }}" method="POST" >
        <div class="form-group">
<h2 class="text-center primary">用户登录</h2>
        </div>
         <div class="form-group row">
             <label class="col-2">账号</label>
             <div class="col-10">
                 <input class="form-control" type="text" name="username" value="{{ .form.UserName }}">
             </div>
          </div>
<div class="form-group row">
<label class="col-2 ">密码</label>
    <div class="col-10"><input class="form-control" type="password" name="password" value=""></div>
</div>
        <div class="form-group row">
<small class=" text-danger col-8 offset-2">
    {{ if .errors.HasErrors }}
    {{ range .errors.Errors }}
    {{ index . 0 }}
    {{ end }}
    <br/>
    {{ end }}
</small>
        </div>

    <div class="form-group">
        <input class="btn btn-block btn-primary" type="submit" value="登录">
    </div>

</form>
        </div>
</div>
</div>
</body>
</html>